﻿using System;
using System.Linq;
using System.Text;
using nRoute.Utilities;

namespace nRoute.Components.Composition
{
    public struct ResourceKey
    {
        public readonly string _key;
        public readonly Type _type;

        public ResourceKey(Type type, string key)
        {
            Guard.ArgumentNotNull(type, "type");

            _type = type;
            _key = key;
        }

        public Type Type
        {
            get { return _type; }
        }

        public string Key
        {
            get { return _key; }
        }
    }
}